/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Utils;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Daniel
 * Utilizzate questa per tutte le connessioni (Non Modificare)
 */
public class DBconnection {
     
    
     public static Connection getConnection() {
       
         Connection con = null;
         String url = "jdbc:mysql://test.liquidpub.org:3306/phdcourse";
         
        try {

            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection(url, "swengdevel",  ".swengdevel.");            

        } catch (Exception ex) {
        ex.printStackTrace();
        }
        
        return con;          

    }
 
}
